<?php
//var_dump($files);
?>

<link rel="stylesheet" href="<?=style_url('yahoocssreset');?>">
<link rel="stylesheet" href="<?=style_url('formletter');?>">

<table><tr><td>&nbsp;</td></tr></table>

<table cellSpacing="0" cellPadding="0" style="width:818px;">
	<tr>
		<td style="width:200px; vertical-align:top; text-align:right;"><img src="<?php echo image_url("westfieldslogo.jpg"); ?>" alt="westfields logo" height="80px" /></td>
		<td style="width:418px; vertical-align:top; text-align:center;">
			<table cellSpacing="0" cellPadding="0" style="text-align:center;">
				<tr><td>&nbsp;</td></tr>
				<tr><td style="font-size:16px;">WESTFIELDS INTERNATIONAL SCHOOL</td></tr>
				<tr><td style="font-size:10px;"><?=$school_address;?></td></tr>
				<tr><td style="font-size:10px;">Telephone Nos.: (045) 887-4966; (045) 322-2862</td></tr>
				<tr><td style="font-size:10px;">Mobile Numbers: 0917-520-0001; 0917-510-0002</td></tr>
				<tr><td style="font-size:10px;">www.westfields-is.com; <?=$school_email;?></td></tr>
			</table>
		</td>
		<td style="width:200px; vertical-align:top;"><img src="<?php echo image_url("isalogo.jpg"); ?>" alt="isa logo" height="80px" /></td>
	</tr>
</table>

<div style="line-height:2px; height:2px; border-top:#000080 4px solid; border-bottom:#000080 1px solid;">&nbsp;</div>

<table cellspacing="0" cellpadding="4" style="width:818px;">
	<tr><td style="width:50px;">&nbsp;</td><td width="718px">&nbsp;</td><td style="width:50px;">&nbsp;</td></tr>
	<tr><td colspan="3" style="font-size:16px; font-weight:bold; text-align:center;">WAIVER</td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td>&nbsp;</td><td><table cellspacing="0" cellpadding="4"><tr><td style="width:68px">&nbsp;</td><td style="padding:4px;">This is to certify that I,&nbsp;</td><td style="border-bottom:#000 1px solid; width:300px; text-align:center; padding:4px;">&nbsp;</td><td style="padding:4px;">, am fully aware of all the</td></tr><tr><td colspan="4" style="padding:4px;">requirements for admissions at <span style="font-weight:bold;">WESTFIELDS INTERNATIONAL SCHOOL.</span></td></tr></table></td><td>&nbsp;</td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td>&nbsp;</td><td style="text-align:justify;"><table cellspacing="0" cellpadding="4"><tr><td style="width:68px">&nbsp;</td><td style="padding:4px;">Inasmuch as I have not yet submitted and/or attended the following:</td></tr></table></td><td>&nbsp;</td></tr>
	<tr><td>&nbsp;</td><td><table cellspacing="0" cellpadding="4">
	<?php
	if(!empty($files)){
		foreach ($files as $file => $filer) {
	?>
		<tr><td style="width:218px;">&nbsp;</td><td style="border-bottom:#000 1px solid; width:300px; text-align:center; padding:4px;"><?php echo $filer; ?></td><td style="width:250px;">&nbsp;</td></tr>
	<?php
		}
	}else{
		for($i=1;$i<=5;$i++){
	?>
	<tr><td style="width:218px;">&nbsp;</td><td style="border-bottom:#000 1px solid; width:300px; padding:4px;">&nbsp;</td><td style="width:250px;">&nbsp;</td></tr>
	<?php
		}
	}
	?>
	</table></td><td>&nbsp;</td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td>&nbsp;</td><td style="padding:4px; text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I accept with full responsibility that my son/daughter will be temporarily enrolled until such time that I can submit all the requirements, I also promise to submit the said documents on ______________________________.</td><td>&nbsp;</td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td>&nbsp;</td><td style="padding:4px; text-align:justify;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Furthermore, I hold <span style="font-weight:bold;">WESTFIELDS INTERNATIONAL SCHOOL</span> free from any legal responsibilities on account of my failure to submit all requirements on time.</td><td>&nbsp;</td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td colspan="3">&nbsp;</td></tr>
	<tr><td>&nbsp;</td><td>
		<table cellspacing="4" cellspacing="0">
			<tr><td style="width:200px; border-bottom:#000 1px solid; text-align:center;"><?php echo ucwords(strtolower($student->firstname))?> <?php echo $student->middlename!=''?ucwords(strtolower($student->middlename)).' ':'';?><?php echo ucwords(strtolower($student->lastname)).' '.ucwords(strtolower($name_ext)); ?></td><td style="width:318px;">&nbsp;</td><td style="width:200px; border-bottom:#000 1px solid;">&nbsp;</td></tr>
			<tr><td style="text-align:center;">Student's Name and Level</td><td></td><td style="text-align:center;">Parent/Guardian's Signature</td></tr>
			<tr><td>&nbsp;</td><td></td><td style="text-align:center;">over Printed Name</td></tr>
			<tr><td style="border-bottom:#000 1px solid; text-align:center;"><?php echo date('F d, Y',strtotime($dater)); ?></td><td>&nbsp;</td><td>&nbsp;</td></tr>
			<tr><td style="text-align:center;">Date</td><td></td><td></td></tr>
			</table>
	</td><td>&nbsp;</td></tr>
</table>